package com.trdcore.zyzkt.controller;


import com.trdcore.zyzkt.model.user.UserInfo;
import com.trdcore.zyzkt.service.UserInfoService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author Luffy
 * @since 2024-03-19
 */
@RestController
@RequestMapping("/admin/user/userInfo")
@Tag(name = "用户模块")
public class UserInfoController {

    @Autowired
    private UserInfoService userService;

    @Operation(summary = "获取",description = "获取")
    @GetMapping("inner/getById/{id}")
    public UserInfo getById(@PathVariable("id") Long id) {
        return userService.getById(id);
    }
}

